package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-24
 * Time: 14:27
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList array=new MyArrayList();
        array.add(20);
        array.add(10);
        array.add(10);
        array.add(10);
        array.add(10);
        array.add(10);
        array.add(3,40);
        boolean bool=array.contains(20);
        System.out.println(bool);
        int index=array.indexOf(40);
        System.out.println(index);


        array.display();

    }
}
